package com.spzx.product.api.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "商品单位")
public class ProductUnit extends BaseEntity {
    @Schema(description = "商品单位名称")
    @NotEmpty
    @Size(min = 1, max = 5, message = "商品单位名称长度在1到5之间")
    private String name;
}